package com.xuan.pmh.util;

import android.widget.EditText;
import android.widget.Spinner;


/**
 * @author xuan
 * 2014-10-30
 * 
 */
public class ActivityUtil {
	public static int getRole(Spinner spRole){
		String role = spRole.getSelectedItem().toString();
		if(role.equals("学生")){
			return FinalValue.STUDENT;
		}else{
			if(role.equals("工作者")){
				return FinalValue.WORKER;
			}else{
				return FinalValue.MANAGER;
			}
		}
	}
	
}
